package com.ncell.cell;

public class P {

    private float x;
    private float y;
    private float activation;
    private float gravity;
    private float gravityIngibition;
    private float priority;
    private I owner;
    private float aggrievedness;

    public float getAggrievedness() {
        return aggrievedness;
    }

    public void setAggrievedness(float aggrievedness) {
        this.aggrievedness = aggrievedness;
    }

    public float getCalculatedGravity() {
        return gravity + aggrievedness - gravityIngibition;
    }

    public float getGravityIngibition() {
        return gravityIngibition;
    }

    public void setGravityIngibition(float gravityIngibition) {
        this.gravityIngibition = gravityIngibition;
    }

    public void addGravityIngibition(float gravityIngibitionDelta) {
        gravityIngibition += gravityIngibitionDelta;
    }

    public float getActivation() {
        return activation;
    }

    public void setActivation(float activation) {
        this.activation = activation;
    }

    public boolean isActive() {
        return activation > 0.5;
    }
    public boolean isAggrieved() {
        return aggrievedness > 0.5;
    }

    public float getX() {
        return x;
    }

    public void setX(float x) {
        this.x = x;
    }

    public float getY() {
        return y;
    }

    public void setY(float y) {
        this.y = y;
    }

    public float getGravity() {
        return gravity;
    }

    public void setGravity(float gravity) {
        this.gravity = gravity;
    }

    public float getPriority() {
        return priority;
    }

    public void setPriority(float priority) {
        this.priority = priority;
    }

    public I getOwner() {
        return owner;
    }

    public void setOwner(I owner) {
        this.owner = owner;
    }

}
